import service from '@/utils/request.js'

// 获取音乐URL
export const SongUrlAPI = SongId => { // SongId类型为string,可传多个音乐id,例如('405998841,33894312')
  return service({
    method: 'GET',
    url: `/song/url/?id=${SongId}`
  })
}

// 获取歌曲详情
export const SongDetailsAPI = SongIds => {
  return service({
    method: 'GET',
    url: `/song/detail?ids=${SongIds}`
  })
}

// 获取歌词详情
export const SongLyricAPI = SongId => {
  return service({
    method: 'GET',
    url: `/lyric?id=${SongId}`
  })
}
